|
VisualRep |
|
|
Property |
Type |
Required |
Comment |
|
page |
number |
yes |
Page no. where to put image; 1 for first page, -1 for last page. |
|
posX |
number |
yes |
X position specified in 1/10 millimeters. If the number is positive (200) means that the signature field will be placed 200 units from left edge of the page. |
|
posY |
number |
yes |
Y position specified in 1/10 millimeters. |
|
width |
number |
yes |
|
|
height |
number |
yes |
|
|
RGB |
number |
|
RGB value : three bytes of long; default = 0 (0x00RRGGBB in hex) |
|
images |
Array of [Image] |
no |
|
|
texts |
Array of [Text] |
no |
|
Example: Visual presentaion of the digital signature in PDF
Sample document has two pages. Let's look at the example, where the field (in which will be placed the signatue) will be placed on the first page of the document.
.png)
|
... var visual = proXSign.VisualRep(); visual.page = 1; //the signature will be shown on the first page of the document ... |
.png)
The next example explains how to add the LOGO and some text to the visualisation.
|
... //picture in binary code slikca1.image = encImg; slikca1.posX = 100; slikca1.posY = 100; //show the picture which will be 10 x 10 mm
//add text var tekst1 = proXSign.Text("Test Signature", 220, 12, 25, "Tahoma", [proXSign.fontFlags.RegularFont]);
var tekst2 = proXSign.Text(); tekst2.posX = 220; tekst2.posY = 50; tekst2.fontSize = 22; tekst2.fontFace = "Lucida Sans Unicode"; tekst2.fontFlags = [proXSign.fontFlags.BoldFont, proXSign.fontFlags.RegularFont]; tekst2.text = "proXSign v2.0.0";
visual.texts = [tekst1,tekst2]; ... |
|
|